package com.ruoyi.mobile.api;

import com.ruoyi.common.core.domain.AjaxResults;
import com.ruoyi.qsng.service.IKCoursePurchaseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单
 *
 * @author gk
 * @date 2023-07-4
 */
@Api(tags = "订单")
@RestController
@RequestMapping
public class OrderController {

    @Autowired
    private IKCoursePurchaseService kCoursePurchaseService;


    /**
     * 获取订单详细信息
     */
    @ApiOperation(value = "获取订单详细信息")
    @GetMapping(value = "/weixin/getOrder/{id}")
    public AjaxResults getOrder(@PathVariable("id") String id)
    {
        return AjaxResults.success(kCoursePurchaseService.selectKCoursePurchaseById(id));
    }
}
